import { IsNotEmpty } from "class-validator";
import { CreateDateColumn } from "typeorm";

export class CreateEventDto {
  userId: number;
  @IsNotEmpty({ message: "事件名称不能为空" })
  eventName: string;

  @IsNotEmpty({ message: "事件原因不能为空" })
  eventReson: string;

  @IsNotEmpty({ message: "事件时间不能为空" })
  eventTime: string;

  @CreateDateColumn({ name: "created_at" })
  createdAt: Date;
}
